﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WanPiJie.WebSite
{
	public partial class Index : PageMustLogin_Baby
	{
		/// <summary>
		///获取当前用户宝宝的最新成长记录
		/// </summary>
		private GrowthRecord lastGrowthRecord;

		protected GrowthRecord LastGrowthRecord
		{
			get
			{
				return this.lastGrowthRecord;
			}
		}

		/// <summary>
		/// HTTP GET方式的处理
		/// </summary>
		protected override void HttpGetProcess()
		{
			base.HttpGetProcess();

			if (this.HasBaby)
			{
				this.lastGrowthRecord = WpjSf.GrowthRecordService.GetLastGrowthRecord(this.Baby.Id);
			}
			else
			{
				Response.Redirect("/MyBaby/Index.aspx", false);
			}
		}
	}
}